import type { ColumnsType } from 'antd/es/table';
import { DataType, FieldDataType } from './data.d';

export const columns: ColumnsType<DataType> = [
  {
    title: '事件',
    dataIndex: 'event',
    key: 'event',
    width: 90,
  },
  {
    title: '监听器',
    dataIndex: 'type',
    key: 'type',
    width: 110,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 110,
    key: 'action',
  },
];

export const fieldColumns: ColumnsType<FieldDataType> = [
  {
    title: '名称',
    dataIndex: 'name',
    key: 'name',
    width: 90,
  },
  {
    title: '类型',
    dataIndex: 'type',
    key: 'type',
    width: 110,
  },
  {
    title: '值',
    dataIndex: 'value',
    key: 'value',
    width: 110,
  },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'action',
  },
];
